package com.nc.delivery_project.shared.servicelocator;

import com.google.web.bindery.requestfactory.shared.ServiceLocator;
import com.nc.delivery_project.server.service.DepartmentService;


public class DepartmentServiceLocator implements ServiceLocator{

	private static DepartmentService serviceInstance;
	@Override
	public Object getInstance(Class<?> arg0) {
		return DepartmentServiceLocator.getServiceInstance();
	}
	private static DepartmentService getServiceInstance() {
		if (serviceInstance == null) {
            serviceInstance = new DepartmentService();
        }

        return serviceInstance;
	}

}
